package com.webbei.myCustom.service.impl;

import java.util.List;

import com.webbei.myCustom.dao.myCustomDao;
import com.webbei.myCustom.service.myCustomService;
import com.webbei.pojo.Customer;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Orders;

public class myCustomServiceImpl implements myCustomService{
	private myCustomDao cusDao;
	public myCustomDao getCusDao() {
		return cusDao;
	}
	public void setCusDao(myCustomDao cusDao) {
		this.cusDao = cusDao;
	}
	public Customer getCustomerByUserName(String userName) {
		return cusDao.getCustomerByUserName(userName);
	}
	public List<Customs> getCustomsByUserName(String userName) {
		return cusDao.getCustomsByUserName(userName);
	}
	public List<Orders> getOrderByUserName(String userName) {
		return cusDao.getOrderByUserName(userName);
	}
	public int deleCustom(Integer customId) {
		return cusDao.deleCustom(customId);
	}
	public int saveCustom(Customs c) {
		return cusDao.saveCustom(c);
	}
	public Double getPriceByBgPic(String pic) {
		return cusDao.getPriceByBgPic(pic);
	}
	@Override
	public Customs getCustomById(Integer id) {
		// TODO Auto-generated method stub
		return cusDao.getCustomById(id);
	}
}
